<?php

	require_once "Zend/Json.php";
	$page   = $_POST["page"];
	$pageid = $_POST["id"];
	
	$plugins -> page -> setPageModificationType( $page );
	$pagedata = $plugins -> page -> getPageById( $pageid );
	
	$pagename = ucfirst($pagedata->name);
	
	$data = array(
	"status"  => "true",
	"message" => "Successfully validation! System is preparing permissions area...",
	"content" => ""
	);
	
	echo Zend_Json::encode($data);
	
	$data = array(
	"status"  => "false",
	"message" => "There was a problem with data validation! Check inputs!",
	"input"   => "name",
	"inputmessage" => "Please recheck page name. Page name can't be smaller than 3 characters and longer than 20 characters! 
	                   As well it can't be blank!",
	"content" => ""
	);